package com.example.web.service.cabinetstatus.impl;

import com.example.web.constant.CouponType;
import com.example.web.service.CouponStrategy;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service(CouponType.NEW_COMER)
public class NewcomerCouponStrategyImpl extends CouponStrategy {
    @Override
    public BigDecimal calculate(BigDecimal input) {
        return input.subtract(BigDecimal.valueOf(1));
    }
}
